package com.cssy.authority.dao;


import java.sql.SQLException;
import java.util.List;

import com.cssy.authority.entity.Role;
import com.cssy.authority.entity.RoleExample;

public interface RoleDAO {
    void insert(Role record) throws SQLException;

    int updateByPrimaryKey(Role record) throws SQLException;

    int updateByPrimaryKeySelective(Role record) throws SQLException;

    List selectByExample(RoleExample example) throws SQLException;

    Role selectByPrimaryKey(Long id) throws SQLException;

    int deleteByExample(RoleExample example) throws SQLException;

    int deleteByPrimaryKey(Long id) throws SQLException;

    int countByExample(RoleExample example) throws SQLException;

    int updateByExampleSelective(Role record, RoleExample example) throws SQLException;

    int updateByExample(Role record, RoleExample example) throws SQLException;
    
    /**
     * 得到有访问该 权限的角色
     * @param permissionid
     * @return
     * @throws SQLException
     */
    List<Role> selectByExample(String permissionid) throws SQLException;
}